package test1223;

public class Test02 {
    public static void main(String[] args) {

        // (2)打印5位数各个为的数字
        // 算数运算符：/、%

        int value = 12345;

        System.out.println(value % 10);

        System.out.println(value / 10 % 10);
        System.out.println(value % 100 / 10);

        System.out.println(value / 100 % 10);

        System.out.println(value / 1000 % 10); // 1.2

        System.out.println(value / 10000); // 1

    }
}
